package com.sendables;

import java.awt.Color;

public abstract class Sendable {
	public static final byte	LINE				= 0x1 << 0;
	public static final byte	CHAT_MESSAGE		= 0x1 << 1;
	public static final byte	DOODLE_IMAGE		= 0x1 << 2;
	public static final byte	CURSOR				= 0x1 << 3;
	public static final byte	SQUARE				= 0x1 << 4;
	public static final byte	CIRCLE				= 0x1 << 5;
	public static final byte	MULTI_POINT_LINE	= 0x1 << 6;

	public static final int		INT_SIZE			= 4;
	public static final int		BYTE_SIZE			= 1;

	public static Color			c					= Color.RED;

	public abstract void writeByteRepresentation(byte[] b, int[] offset);

	public abstract int getAlloc();

	public int alloc(int i)
	{
		return INT_SIZE;
	}

	public int alloc(byte b)
	{
		return BYTE_SIZE;
	}

}
